QT       += core gui
#sqlite 数据库
QT  += sql
# 串口通信
QT += serialport
#并发
QT += concurrent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

CONFIG += debug_and_release

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += \
    core \
    models \
    db \
    utils \
    widgets \
    ui \
    ui\widget  #定义的控件路径

SOURCES += \
    config/config.cpp \
    config/constant.cpp \
    core/basewindow.cpp \
    db/dbservice.cpp \
    db/model/setting.cpp \
    db/model/user.cpp \
    db/ormbase.cpp \
    db/setting_service_dao.cpp \
    db/sqliteutils.cpp \
    main.cpp \
    model/datapacket.cpp \
    service/serialportservice.cpp \
    ui/dialog/baudrate_dialog.cpp \
    ui/homewindow.cpp \
    ui/widget/ecggridwidget.cpp \
    ui/widget/ecgwavewidget.cpp \
    ui/widget/qpushbuttonwidget.cpp \
    utils/binaryfileutil.cpp \
    utils/concurrentpipeline.cpp \
    utils/concurrentworker.cpp \
    utils/messageboxutils.cpp \
    utils/pathutils.cpp \
    utils/pxutils.cpp \
    utils/serialportmonitorthread.cpp \
    utils/serialportutils.cpp \
    utils/threadwork.cpp

HEADERS += \
    config/config.h \
    config/constant.h \
    core/basewindow.h \
    db/dbservice.h \
    db/model/setting.h \
    db/model/user.h \
    db/ormbase.h \
    db/setting_service_dao.h \
    db/sqliteutils.h \
    model/datapacket.h \
    service/serialportservice.h \
    ui/dialog/baudrate_dialog.h \
    ui/homewindow.h \
    ui/main.h \
    ui/widget/ecggridwidget.h \
    ui/widget/ecgwavewidget.h \
    ui/widget/qpushbuttonwidget.h \
    utils/binaryfileutil.h \
    utils/concurrentpipeline.h \
    utils/concurrentworker.h \
    utils/messageboxutils.h \
    utils/pathutils.h \
    utils/pxutils.h \
    utils/serialportmonitorthread.h \
    utils/serialportutils.h \
    utils/threadwork.h

#FORMS += $$files(ui/*.ui)
FORMS += \
    ui/dialog/baudrate_dialog.ui \
    ui/homewindow.ui


#RESOURCES += resources.qrc

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resouce.qrc
